{

  const adom = document.querySelector("nav > a");
  const uldom = document.querySelector("nav > ul");
  adom.addEventListener("click", function(event) {
       uldom.classList.toggle("open");
  });

}


{

  const adom1 = document.querySelector("nav > ul > li > a:nth-last-child(2)");
  console.log(adom1);
  const uldom1 = document.querySelector("nav > ul > li > ul");
  console.log(uldom1);
  adom1.addEventListener("click", function(event) {
       uldom1.classList.toggle("open1");
  });

}
